home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1996 June / MACPOWER-1996-06.ISO.7z / MACPOWER-1996-06.ISO / AMUG / PROGRAMING_7 / MemMapper 1.3 / Read Me < prev   
Text File  |  1996-01-18  |  6KB  |  113 lines

  1. Memory Mapper 1.3
  2.  
  3. Copyright ゥ R. Fronabarger, 1996
  4.  
  5.  
  6. What Does It Do?
  7.  
  8. If youユve done programming on the Mac you've probably seen sketches of the Macintoshユs address space.  A memory map is a grpahical representation of that address space as a grid or map in order to show the location of various system structures in RAM and where they are in relation to each other.  Memory Mapper draws this map for your own computer.
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. How Does It Work?
  29.  
  30. Memory Mapper determines the boundaries of objects in memory by examining low-memory globals, querying the Process Manager, and checking the page state of each piece of memory (if virtual memory is on).  Consequently, Memory Mapper requires System 7.
  31.  
  32. Item List
  33.  
  34. The right side of the window is the Item List which shows each partitionユs name, type, signature, size, and amount of free space left in that partition.
  35.  
  36. The name is the applicationユs name or the name of the system structure.  Unused areas of RAM which are larger than 3K (thereユs always a few bytes between programs) are also indicated.
  37. The type is the four-character type code:  APPL for applications, appe and INIT for faceless background processes (they donユt show up in the Application menu), dfil for desk accessories, etc.
  38. The signature is the unique four-character code which identifies the process so that it can be matched to the documents and icons which are associated with it.
  39. The size is the total size of the partition that has been assigned to it.
  40. The free space is what the Process Manager reports as the unused and available heap space for the process.  In the case of the system heap, it is the amount reported by FreeMemSys.
  41.  
  42. Memory Map
  43.  
  44. The left side of the window is the Memory Map which shows the entire physical RAM or, if virtual memory is on, the total logical RAM of your computer.  The map is drawn to scale and displays the way memory space is partitioned for use by the system and applications.  The amount of a partition that is actually used is indicated by filling in the lower part of the partition like a thermometer.
  45.  
  46. Virtual Memory Indicator
  47.  
  48. If you are using virtual memory you will see another area to the right of the memory map which indicates which parts of memory are in RAM and which are paged out to disk.  The black areas are what are currently stored in the backing file on the hard disk (at least in the case of Appleユs virtual memory scheme).  In the screen dump above, the backing file is 32 megabytes in size, augmenting the 16 megabytes of physical memory with 16 megabytes of virtual memory.
  49. (Sometimes you will see some of this memory in red.  This is memory which is メnot pagedモ, it is not part of the virtual paged memory space.)
  50.  
  51. Process Info Dialog
  52.  
  53. If you double-click on one the items in the Item List you will get a dialog which provides more information about that memory partition:
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. Process:      The name of the process.
  69. Type:         Memory block type: application, desk accessory, or background process.
  70. Address:      The base address of the process or partition.
  71. PSN:          Process Serial Number (high/low).
  72. Launched:     Time and date when the process was started.
  73. Active Time:  Accumulated CPU time (hh:mm:ss)
  74. Path:         Path to processユs file.
  75.  
  76. Block Types
  77.  
  78. Memory Mapper displays five types of memory blocks:
  79.  
  80. Low Memory Globals  The location for many system parameters.
  81. System Heap         The RAM which the System uses for storing itユs current resources
  82.                         such as fonts, icons, and sounds.
  83. Free Memory         Free RAM still available for applications.
  84. High Memory         Used for debuggers, sound and video buffers, and the disk cache.
  85. Processes           Applications, desk accessories, and background processes.
  86.  
  87. Automatic Updates
  88.  
  89. Memory Mapper detects when you open or close applications and redraws its window automatically.  You can, however, force a redraw by choosing Update from the File menu.  You can also select Update Regularly from the File menu to activate a 10-second update interval.  Forced updates are useful if you want to watch how virtual memory pages the application memory space to disk.
  90.  
  91. Send Quit Event
  92.  
  93. You can send an AppleEvent ヤquitユ message to a currently-running process.  This allows you to quit some processes which you normally canユt quit from, such as the Finder or certain background processes.
  94. (Some background processes will report that they didnユt handle the メquitモ message even when they did.  Others, such as File Sharing, wonユt quit but they may stop running.)
  95.  
  96. Miscellaneous Notes
  97.  
  98. The number that the Finder reports for the size of メSystem Softwareモ is not the system heap alone but a combination of the system heap, high and low memory, and the Finderユs partition.
  99.  
  100. The number that the Finder reports for the size of application partitions is 8K smaller than the actual partition on  68000 Macs and 16K smaller on all later-model Macs because the Finder subtracts out the stack space.
  101.  
  102. If you bring up the Process Info dialog for a process that is located on a floppy disk or on a System 6 volume you will get a  メmissingモ icon because those volume types do not have a desktop database file.
  103.  
  104. When the Finder reports メNot enough memory to load applicationモ it is often because there is not enough continuous memory available.  Memory Mapper makes it easy to see how memory space can become fragmented.
  105.  
  106. In System 7 the system heap grows dynamically.  When the Finder reports メInsufficient memory for this operationモ it is usually because an application partition is next to the system heap and is preventing it from growing.  Quitting this application can free the system heap and let the other application work.
  107.  
  108. Copyright Notice
  109.  
  110. Memory Mapper is copyrighted ゥ 1996 by R. Fronabarger and Street Logic Software, all rights reserved.  It is not public domain, however it is free for personal use and may be freely distributed as long as this Read Me file remains with it.
  111.